package cn.wancat.pattern.behavioral.command;

/**
 * 调用者
 */
public class Invoker {
    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    public Invoker(Command command) {
        this.command = command;
    }
    public void call(){
        command.execute();
    }
}
